<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- 这个地方必须得引入，否则会出现页面可缩放的问题-->
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>Popup</title>
    <!-- weui的相关css样式，需要引入-->
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/jquery-weui.min.css">
    <style>
        h1{
            font-weight: 300;
            color: #0bb20c;
            text-align: center;
        }
        p{
            text-align: center;
            color: #8a8a8a;
        }
    </style>
</head>
<body>
<div style="margin: 35px auto">
    <h1>Popup</h1>
</div>
<div class="weui-btn-area">
    <a class="weui-btn weui-btn_primary open-popup" href="javascript:void(0);" id="show-full-screen-btn" data-target="#full-popup-id">显示全屏（默认）Popup</a>
    <a class="weui-btn weui-btn_primary open-popup" data-target="#half">显示底部的Popup</a>
</div>

<div id="full-popup-id" class="weui-popup__container">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div style="margin: 20px auto">
            <h1>关于Jquery Weui</h1>
            <p>版权属于谁谁谁@qq.com</p>
        </div>
        <article class="weui-article">
            <h1>大标题</h1>
            <section>
                <h2 class="title">章标题</h2>
                <section>
                    <h3>1.1 节标题</h3>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                        consequat.
                    </p>
                    <p>
                        <img src="../images/swiper/swiper-1.jpg" alt="">
                        <img src="../images/swiper/swiper-2.jpg" alt="">
                    </p>
                </section>
                <section>
                    <h3>1.2 节标题</h3>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                        cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                        proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                    </p>
                </section>
            </section>
        </article>
        <div class="weui-btn-area">
            <a class="weui-btn weui-btn_warn" href="javascript:void(0)" id="closePopupBtn">关闭</a>
        </div>
    </div>
</div>
<div id="half" class="weui-popup__container popup-bottom" style="display: none;">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="toolbar">
            <div class="toolbar-inner">
                <a href="javascript:;" class="picker-button close-popup">关闭</a>
                <h1 class="title">标题</h1>
            </div>
        </div>
        <div class="modal-content">
            <div class="weui-grids">
                <a href="javascript:;" class="weui-grid js_grid" data-id="dialog">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        发布
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid js_grid" data-id="progress">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        编辑
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid js_grid" data-id="msg">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        保存
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid js_grid" data-id="dialog">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        发布
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid js_grid" data-id="progress">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        编辑
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid js_grid" data-id="msg">
                    <div class="weui-grid__icon">
                        <img src="../images/icon_nav_button.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        保存
                    </p>
                </a>
            </div>
        </div>
    </div>
</div>


<script src="../js/jquery.min.js"></script>
<script src="../js/jquery-weui.min.js"></script>
<script>
$("#closePopupBtn").on('click',function(){
    $.closePopup()
})
</script>
</body>
</html>